package com.example.kotlin.basis

import java.util.*

/**
 * Created by xiao_tan on 17/7/23.
 * List / Map
 */

fun main(args: Array<String>) {

    var lists = listOf("北京", "天津", "南昌", "吉水")
    var mutableLists = mutableListOf("北京", "天津", "南昌", "吉水")
    for ((i, v) in lists.withIndex()) {
        println("$i $v")
    }

    var map = TreeMap<String, String>()
    map["好"] = "good"
    map["学习"] = "study"
    map["天天"] = "day day"
    map["向上"] = "up"

    println(map["好"] + " " + map["好"] + " " + map["学习"] + " " + map["天天"] + " " + map["向上"])
}